import moment from 'moment'

const formatTimeAgoFn = targeDate => {
  // 设置语种为 中文
  moment.locale('zh-cn')
  return moment(targeDate).from(new Date())
}

export {
  formatTimeAgoFn
}
